package com.woniuxy.book.controller;


import com.woniuxy.book.service.OrderItemService;
import com.woniuxy.book.service.dto.SelectOrderItemDTO;
import com.woniuxy.book.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author li
 * @since 2024年2月09日
 */
@RestController
@RequestMapping("/orderItem")
public class OrderItemController {

    @Resource
    private OrderItemService orderItemService;

    @GetMapping("/user/selectOrderItem")
    public Result selectOrderItem(Integer pageNum,Integer pageSize,String orderId){
        SelectOrderItemDTO selectOrderItemDTO = orderItemService.selectOrderItem(pageNum,pageSize,orderId);
        return Result.success("查询订单详情成功",selectOrderItemDTO);
    }

}

